// JavaScript Document
/*
*@description : 缓存类，用于撤销重做
*@date : 2013-10-30
*@version : 1.0
*@author : WangTao
*/
var Cache = Cache||{};

Cache = {
	//缓存下标
	cacheIndex : 0,
	//缓存数组
	cacheList : [],
	//缓存方法
	saveImageToCache : function (){
			Cache.cacheIndex = 0;
			var dataUrl =  canvas.toDataURL();
			this.cacheList.push(dataUrl);		
		}
		
			
		
		
	
}